/*   time:2019-06-13 20:39:24*/
var t = getApp(),
    a = t.requirejs("core");
Page({
    data: {
        loaded: !1,
        list: []
    },
    onLoad: function(a) {
        t.url(a)
    },
    onShow: function() {
        this.getList();
        t.getCache("isIpx") ? this.setData({
            isIpx: !0,
            iphonexnavbar: "fui-iphonex-navbar",
            paddingb: "padding-b"
        }) : this.setData({
            isIpx: !1,
            iphonexnavbar: "",
            paddingb: ""
        })
    },
    onPullDownRefresh: function() {
        wx.stopPullDownRefresh()
    },
    getList: function() {
        var e = this;
        a.get("member/address/get_list", {}, function(t) {
            e.setData({
                loaded: !0,
                list: t.list,
                show: !0
            })
        })
    },
    select: function(e) {
        var i = a.pdata(e).index;
        t.setCache("orderAddress", this.data.list[i], 30), wx.navigateBack()
    }
});